import request from '/@/api/request'
/** 服务类型 */

/** 分页查询服务列表 */
export const requestServiceTypeList = (data: ServiceTypeListTypes.IRequest) => {
  return request.post<IBaseResponse<ServiceTypeListTypes.IResponse>>('/manage/openApiServiceType/serviceTypeList', data)
}
/** 新增服务类型 */
export const requestAddServiceType = (data: AddServiceTypeTypes.IRequest) => {
  return request.post<IBaseResponse<AddServiceTypeTypes.IResponse>>('/manage/openApiServiceType/addServiceType', data)
}
/** 编辑服务类型 */
export const requestEditServiceType = (data: EditServiceTypeTypes.IRequest) => {
  return request.post<IBaseResponse<EditServiceTypeTypes.IResponse>>('/manage/openApiServiceType/editServiceType', data)
}
/** 删除服务类型 */
export const requestDeleteServiceType = (data: DeleteServiceTypeTypes.IRequest) => {
  return request.post<IBaseResponse<DeleteServiceTypeTypes.IResponse>>('/manage/openApiServiceType/deleteServiceType', data)
}
